<template>
	<common-page tab>
    这是首页
  </common-page>
</template>

<script>
// noinspection NpmUsedModulesInstalled
import { mapGetters } from 'vuex';
export default {
	components: {
	},
	data() {
		return {};
	},
	computed: {
		...mapGetters('user', ['token'])
	},
	onLoad() {
		this.init();
		console.log('token', this.token);
	},
	onPullDownRefresh() {
		this.init();
	},
	methods: {
		init() {
			uni.$u.http.get('/api/index').then(res => {
				console.log(res.data);
			}).catch(() => {});
		}
	}
};
</script>

<style lang="scss" scoped>

</style>
